<template>
  <div class="son">
    <h3>我是子组件:曹植{{money}}</h3>
  </div>
</template>

<script setup lang="ts">
import { ref } from "vue";

let money=ref(10000);
const fly=() => {
  console.log('曹植在飞');
}
defineExpose({
  money,
  fly
});
</script>

<style scoped>
.son {
  width: 300px;
  height: 200px;
  background: cyan;
}
</style>